home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000233_icon-group-sender _Thu Nov 18 08:16:37 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA26926
  4.     for icon-group-addresses; Thu, 18 Nov 1999 08:15:55 -0700 (MST)
  5. Message-Id: <199911181515.IAA26926@baskerville.CS.Arizona.EDU>
  6. X-Authentication-Warning: agate.berkeley.edu: news set sender to <news> using -f
  7. X-Newsgroups: comp.lang.icon
  8. From: jrinkel@no.email.com (Jay Rinkel)
  9. Subject: Re: Strange table behavior
  10. X-Newsreader: News Xpress 2.01
  11. X-Trace: typ11.nn.bcandid.com 942884478 216.180.15.233 (Wed, 17 Nov 1999 19:21:18 EST)
  12. Date: Thu, 18 Nov 1999 00:20:08 GMT
  13. To: icon-group@optima.CS.Arizona.EDU
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16.  
  17. In article <383330B4.58AE@att.com>, Kostas Oikonomou <oikonomou@att.com> wrote:
  18. >When I run this program
  19. >
  20. >procedure main()
  21. >  local T
  22. >  T := table([])
  23. >  put(T[1], "A")
  24. >  write("*T = ", *T)
  25. >  write(T[1][1])
  26. >end
  27. >
  28. >I get
  29. >
  30. >*T = 0
  31. >A
  32. >
  33. >
  34. >Can anyone explain to me what's happening here?  Does it have to do with
  35. >T being a table of lists?
  36. >
  37. >                                Kostas
  38.  
  39. Please see the article at the following web page:  it is an article on the 
  40. Icon Programming language web site and specifically addresses this issue.  It 
  41. explains the situation much better than I can here!
  42.  
  43. http://www.cs.arizona.edu/icon/progcorn/pc_inl21.htm
  44.  
  45. Jay Rinkel
  46.